home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #14
/
Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO
/
prog_d
/
oleauttr.zip
/
XLOLE7.ZIP
/
README.TXT
< prev
next >
Wrap
Text File
|
1996-01-04
|
852b
|
19 lines
This example illustrates controlling Excel as an OLE server.
It differs from the XLOLE5 example in that the server (Excel)
is run as a stand-alone instance rather than within a Delphi
TOLEContainer component.
This example works with both Excel 5 and Excel 7, whereas
the XLOLE5 example works only with Excel 5.
When you click the Create button, Excel starts up and becomes
visible. If you then click the SaveAs... button, a new Workbook
is created, the contents of the edit box are inserted as the
value of the upper left cell, and Excel saves the worksheet
under a name you are asked to specify.
It illustrates interesting techniques: writing nested "mirror
classes", automatic allocation and deallocation of nested
objects, and the use of the TOLEObject.GetObject(ProgID : String)
constructor to "hook into" a running instance.